function a5_pyr_KO_PV(Data_Summary)
%% get all basic info to put into a summary table ready
animalNames = {'CaMKIIa_F6_32'; 'CaMKIIa_F7_18'; 'CaMKIIa_F7_20'; 'CaMKIIa_F6_19'; 'CaMKIIa_F6_20'; 'CaMKIIa_F6_21'; 'CaMKIIa_F6_22';};
genotype = {'p-WT'; 'p-WT'; 'p-WT'; 'a5-pyr-KO'; 'a5-pyr-KO'; 'a5-pyr-KO'; 'a5-pyr-KO'};

%% collect saline data
[CaMKIIa32_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'saline');
[CaMKIIa18_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'saline');
[CaMKIIa720_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'saline');
[CaMKIIa19_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'saline');
[CaMKIIa20_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'saline');
[CaMKIIa21_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'saline');
[CaMKIIa22_saline_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'saline');

% concatenate results
saline = cat(1, CaMKIIa32_saline_M, CaMKIIa18_saline_M, CaMKIIa720_saline_M, CaMKIIa19_saline_M, CaMKIIa20_saline_M, ...
    CaMKIIa21_saline_M, CaMKIIa22_saline_M);

%% collect altered_contexts data
[CaMKIIa32_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'altered contexts');
[CaMKIIa18_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'altered contexts');
[CaMKIIa720_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'altered contexts');
[CaMKIIa19_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'altered contexts');
[CaMKIIa20_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'altered contexts');
[CaMKIIa21_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'altered contexts');
[CaMKIIa22_altered_contexts_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'altered contexts');

% concatenate results
altered_contexts = cat(1, CaMKIIa32_altered_contexts_M, CaMKIIa18_altered_contexts_M, CaMKIIa720_altered_contexts_M, CaMKIIa19_altered_contexts_M, CaMKIIa20_altered_contexts_M, ...
    CaMKIIa21_altered_contexts_M, CaMKIIa22_altered_contexts_M);

%% collect etom_2 data
[CaMKIIa32_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'etomidate 2mg/kg');
[CaMKIIa18_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'etomidate 2mg/kg');
[CaMKIIa720_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'etomidate 2mg/kg');
[CaMKIIa19_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'etomidate 2mg/kg');
[CaMKIIa20_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'etomidate 2mg/kg');
[CaMKIIa21_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'etomidate 2mg/kg');
[CaMKIIa22_etom_2_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'etomidate 2mg/kg');

% concatenate results
etom_2 = cat(1, CaMKIIa32_etom_2_M, CaMKIIa18_etom_2_M, CaMKIIa720_etom_2_M, CaMKIIa19_etom_2_M, CaMKIIa20_etom_2_M, ...
    CaMKIIa21_etom_2_M, CaMKIIa22_etom_2_M);

%% collect etom_4 data
[CaMKIIa32_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'etomidate 4mg/kg');
[CaMKIIa18_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'etomidate 4mg/kg');
[CaMKIIa720_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'etomidate 4mg/kg');
[CaMKIIa19_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'etomidate 4mg/kg');
[CaMKIIa20_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'etomidate 4mg/kg');
[CaMKIIa21_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'etomidate 4mg/kg');
[CaMKIIa22_etom_4_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'etomidate 4mg/kg');

% concatenate results
etom_4 = cat(1, CaMKIIa32_etom_4_M, CaMKIIa18_etom_4_M, CaMKIIa720_etom_4_M, CaMKIIa19_etom_4_M, CaMKIIa20_etom_4_M, ...
    CaMKIIa21_etom_4_M, CaMKIIa22_etom_4_M);

%% collect etom_6 data
[CaMKIIa32_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'etomidate 6mg/kg');
[CaMKIIa18_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'etomidate 6mg/kg');
[CaMKIIa720_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'etomidate 6mg/kg');
[CaMKIIa19_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'etomidate 6mg/kg');
[CaMKIIa20_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'etomidate 6mg/kg');
[CaMKIIa21_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'etomidate 6mg/kg');
[CaMKIIa22_etom_6_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'etomidate 6mg/kg');

% concatenate results
etom_6 = cat(1, CaMKIIa32_etom_6_M, CaMKIIa18_etom_6_M, CaMKIIa720_etom_6_M, CaMKIIa19_etom_6_M, CaMKIIa20_etom_6_M, ...
    CaMKIIa21_etom_6_M, CaMKIIa22_etom_6_M);

%% collect etom_7 data
[CaMKIIa32_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'etomidate 7mg/kg');
[CaMKIIa18_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'etomidate 7mg/kg');
[CaMKIIa720_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'etomidate 7mg/kg');
[CaMKIIa19_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'etomidate 7mg/kg');
[CaMKIIa20_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'etomidate 7mg/kg');
[CaMKIIa21_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'etomidate 7mg/kg');
[CaMKIIa22_etom_7_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'etomidate 7mg/kg');

% concatenate results
etom_7 = cat(1, CaMKIIa32_etom_7_M, CaMKIIa18_etom_7_M, CaMKIIa720_etom_7_M, CaMKIIa19_etom_7_M, CaMKIIa20_etom_7_M, ...
    CaMKIIa21_etom_7_M, CaMKIIa22_etom_7_M);

%% collect etom_8 data
[CaMKIIa32_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'etomidate 8mg/kg');
[CaMKIIa18_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'etomidate 8mg/kg');
[CaMKIIa720_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'etomidate 8mg/kg');
[CaMKIIa19_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'etomidate 8mg/kg');
[CaMKIIa20_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'etomidate 8mg/kg');
[CaMKIIa21_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'etomidate 8mg/kg');
[CaMKIIa22_etom_8_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'etomidate 8mg/kg');

% concatenate results
etom_8 = cat(1, CaMKIIa32_etom_8_M, CaMKIIa18_etom_8_M, CaMKIIa720_etom_8_M, CaMKIIa19_etom_8_M, CaMKIIa20_etom_8_M, ...
    CaMKIIa21_etom_8_M, CaMKIIa22_etom_8_M);

%% collect midazolam 0.05mg/kg data
[CaMKIIa32_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'midazolam 0.05mg/kg');
[CaMKIIa18_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'midazolam 0.05mg/kg');
[CaMKIIa720_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'midazolam 0.05mg/kg');
[CaMKIIa19_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'midazolam 0.05mg/kg');
[CaMKIIa20_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'midazolam 0.05mg/kg');
[CaMKIIa21_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'midazolam 0.05mg/kg');
[CaMKIIa22_midaz005_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'midazolam 0.05mg/kg');

% concatenate results
midaz005 = cat(1, CaMKIIa32_midaz005_M, CaMKIIa18_midaz005_M, CaMKIIa720_midaz005_M, CaMKIIa19_midaz005_M, CaMKIIa20_midaz005_M, ...
    CaMKIIa21_midaz005_M, CaMKIIa22_midaz005_M);

%% collect midazolam 0.25mg/kg data
[CaMKIIa32_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'midazolam 0.25mg/kg');
[CaMKIIa18_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'midazolam 0.25mg/kg');
[CaMKIIa720_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'midazolam 0.25mg/kg');
[CaMKIIa19_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'midazolam 0.25mg/kg');
[CaMKIIa20_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'midazolam 0.25mg/kg');
[CaMKIIa21_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'midazolam 0.25mg/kg');
[CaMKIIa22_midaz025_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'midazolam 0.25mg/kg');

% concatenate results
midaz025 = cat(1, CaMKIIa32_midaz025_M, CaMKIIa18_midaz025_M, CaMKIIa720_midaz025_M, CaMKIIa19_midaz025_M, CaMKIIa20_midaz025_M, ...
    CaMKIIa21_midaz025_M, CaMKIIa22_midaz025_M);

%% collect midazolam 1.25mg/kg data
[CaMKIIa32_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_32', 'midazolam 1.25mg/kg');
[CaMKIIa18_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_18', 'midazolam 1.25mg/kg');
[CaMKIIa720_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F7_20', 'midazolam 1.25mg/kg');
[CaMKIIa19_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_19', 'midazolam 1.25mg/kg');
[CaMKIIa20_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_20', 'midazolam 1.25mg/kg');
[CaMKIIa21_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_21', 'midazolam 1.25mg/kg');
[CaMKIIa22_midaz125_M] = PV_Mean_Prism(Data_Summary, 'CaMKIIa_F6_22', 'midazolam 1.25mg/kg');

% concatenate results
midaz125 = cat(1, CaMKIIa32_midaz125_M, CaMKIIa18_midaz125_M, CaMKIIa720_midaz125_M, CaMKIIa19_midaz125_M, CaMKIIa20_midaz125_M, ...
    CaMKIIa21_midaz125_M, CaMKIIa22_midaz125_M);

%% Now, make summary table

PV_Summary_Table = table(animalNames, genotype, saline, altered_contexts, etom_2, etom_4, etom_6, etom_7, etom_8, ...
    midaz005, midaz025, midaz125);

%% Export table

[ds, ~] = getdsap;
path = fullfile(ds.metadataPath, 'Prism excel data', 'PVcorr.xlsx');

if ~exist((fullfile(ds.metadataPath, 'Prism excel data')), 'dir')
    mkdir(fullfile(ds.metadataPath, 'Prism excel data'));
end
writetable(PV_Summary_Table, path);

end